#!/bin/bash
##重启相关服务
systemctl restart $service
if [ $? -eq 0 ];then
        echo $service重启成功
else
        echo $service重启失败
fi
